package com.xjl.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController//相当于Controller注解和ResponseBody注解结合
public class HelloController {
    @RequestMapping("/hello")
    public String hello() {
        return "hello，springboot";
    }
}
